/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn.webrx.chat;

import java.io.PrintWriter;
import java.net.InetAddress;
import java.net.Socket;

/**
 * <p>Project: javase2203 - C
 * <p>Powered by webrx On 2022-08-09 09:18:43
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class C {
    public static void main(String[] args) {
        try{
            Socket c = new Socket("192.168.16.16",66);
            PrintWriter out = new PrintWriter(c.getOutputStream());

            out.printf("%s\r\n", InetAddress.getLocalHost().getHostAddress());
            out.flush();
        }catch(Exception e){
            e.printStackTrace();
        }
    }
}
